import { Guard } from '../../constants/guard';

export default [
  {
    path: '/system',
    name: 'system',
    meta: {
      title: '系统管理',
      svg: 'system',
      layout: true,
      guardList: [
        Guard.SystemLogView,
        Guard.SystemLogManage,
        Guard.UserActivityLogView,
        Guard.UserActivityLogManage,
        Guard.MQTTLogView,
        Guard.MQTTLogManage
      ]
    },
    redirect: '/system/log/list'
  },
  {
    path: '/system/log/list',
    name: 'systemLogList',
    meta: {
      title: '系统日志',
      svg: 'log',
      layout: true,
      parentMenu: 'system',
      guardList: [Guard.SystemLogView, Guard.SystemLogManage]
    },
    component: () => import('../../views/settings/systemLog/index.vue')
  },
  {
    path: '/system/mqttLog/list',
    name: 'mqttLog',
    meta: {
      title: 'MQTT日志',
      svg: 'mqtt',
      layout: true,
      parentMenu: 'system',
      guardList: [Guard.MQTTLogView, Guard.MQTTLogManage]
    },
    component: () => import('../../views/mqttLog/list/index.vue')
  }
];
